from django.urls import re_path

from .consumers.TestConsumers import (
    StreamConsumer,
    StreamConsumer_v2,
    CommandParserConsumer,
    StreamConmmandParserConsumer
)
from .consumers.FuncConsumer import FunctionCallingConsumers
from .consumers.CommandParserConsumer import CommandParserConsumer

websocket_urlpatterns = [
    # xxxxx/room/x1 就会走这个
    re_path(r'^ai/(?P<group>\w+)/$', StreamConsumer.as_asgi()),
    re_path(r'^ai_v2/(?P<group>\w+)/$', StreamConsumer_v2.as_asgi()),
    # re_path(r'^command_parse/(?P<group>\w+)/$', CommandParserConsumer.as_asgi()),
    re_path(r'^stream_AI_parser/(?P<group>\w+)/$', StreamConmmandParserConsumer.as_asgi()),
    re_path(r'^funtion_calling/(?P<group>\w+)/$', FunctionCallingConsumers.as_asgi()),
    re_path(r'^command_parser/(?P<group>\w+)/$', CommandParserConsumer.as_asgi()),
    # re_path(r'^funtion_calling_v2/(?P<group>\w+)/$', consumers.function_calling_consumers.FunctionCallingConsumers_v2.as_asgi()),
]
